package mytest

import (
	mystore "HelloWorld/store"
	"sync"
)

type Integer int

func (i *Integer) Less(b Integer) bool {
	return *i < b
}

func (i *Integer) Add(b Integer) Integer {
	return *i + b
}

type LessAdder interface {
	Less(b Integer) bool
	Add(b Integer) Integer
}

type MyInteger struct {
	A Integer
}

func (m MyInteger) Less(b Integer) bool {
	return m.A < b
}

func (m MyInteger) Add(b Integer) Integer {
	return m.A + b
}

type ImplementStore struct {
	sync.Mutex
	books map[string]mystore.Book
}


